package com.cloudbroker.bcs.csvc.itn.apiexport.t2;

import java.util.Map;

import javax.annotation.Resource;

import com.cloudbroker.bcs.common.jres.service.T2ServiceAPIAdapterBase;
import org.springframework.stereotype.Service;

import com.cloudbroker.bcs.csvc.itn.api.service.ITNService;
import com.cloudbroker.bcs.csvc.itn.api.t2service.ITNT2Service;

@Service
public class ITNServiceT2 extends T2ServiceAPIAdapterBase<ITNService> implements ITNT2Service {
    
    @Resource
    private ITNService itnService;
    

    @Override
    protected ITNService getTargetService() {
        return itnService;
    }

    /**
     * 用户注册
     *
     * @param param
     * @return
     */
    @Override
    public Map<String, Object> registerAuthUser(Map<String, Object> param) {
        return callAPI("registerAuthUser", param);
    }

    /**
     * 用户注册查询
     *
     * @param param
     * @return
     */
    @Override
    public Map<String, Object> qryAuthUser(Map<String, Object> param) {
        return callAPI("qryAuthUser", param);
    }

    /**
     * 创建用户Token
     *
     * @param param
     * @return
     */
    @Override
    public Map<String, Object> createAccessToken(Map<String, Object> param) {
        return callAPI("createAccessToken", param);
    }

    /**
     * 发送短信
     *
     * @param param
     * @return
     */
    @Override
    public Map<String, Object> sendSms(Map<String, Object> param) {
        return callAPI("sendSms", param);
    }

    @Override
    public Map<String, Object> sendMail(Map<String, Object> param) {
        return callAPI("sendMail", param);
    }

    @Override
    public Map<String, Object> authCheckCode(Map<String, Object> param) {
        return callAPI("authCheckCode", param);
    }

    @Override
    public Map<String, Object> getLongToken(Map<String, Object> param) {
        return callAPI("getLongToken", param);
    }

    @Override
    public Map<String, Object> getUserToken(Map<String, Object> param) {
        return callAPI("getUserToken", param);
    }
    
    @Override
    public Map<String, Object> getItnUserInfo(Map<String, Object> param) {
        return callAPI("getItnUserInfo", param);
    }
}
